package com.example.qmzy_202208190217

import android.annotation.SuppressLint
import android.app.Application
import android.content.Context

class SunnyWeatherApplication : Application() {

    companion object {
        const val TOKEN = "HJ6tgWVpKsBCV2Y8" // 填入你申请到的令牌值

        @SuppressLint("StaticFieldLeak") // context声明为静态变量会产生内存泄露问题，加此注解，让Android Studio忽略这个错误警告
        lateinit var context: Context
    }

    override fun onCreate() {
        super.onCreate()
        context = applicationContext
    }
}
